package com.piesat.quake.business.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.piesat.quake.business.system.model.SysUser;
import com.piesat.quake.business.system.model.dto.UserDTO;
import com.piesat.security.service.UserService;

import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author ${author}
 * @since 2022-04-22
 */
public interface SysUserService extends IService<SysUser>, UserService {

    Page<SysUser> selectPage(UserDTO dto);

    void create(SysUser user);

    void update(SysUser user);

    void delete(String id);

    //根据用户名获取角色Id
    String getRoleIdByUserName(String username);

    void updatePassword(String oldPassword, String newPassword) throws Exception;

    void resetPassword(String userId) throws Exception;

    boolean uploadDoc(MultipartFile multipartFile);
}
